78% ahmeti-wp-timeline

Code Review | mygallery

WordPress plugin mygallery scored78%from 54 tests.

About plugin

  • Plugin page: ahmeti-wp-timeline
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.0
  • WordPress version: 6.3.1
  • First release: Aug 23, 2013
  • Latest release: Oct 14, 2014
  • Number of updates: 39
  • Update frequency: every 10.7 days
  • Top authors: ahmeti (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /6,687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼19.17ms] Passed 4 tests

An overview of server-side resources used by mygallery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.64 ▼4.61
Dashboard /wp-admin3.13 ▼0.2228.06 ▼33.85
Posts /wp-admin/edit.php3.27 ▼0.0934.82 ▼10.77
Add New Post /wp-admin/post-new.php5.51 ▼0.3871.90 ▼26.34
Media Library /wp-admin/upload.php3.22 ▼0.0128.81 ▼5.70

Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

mygallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6114.35 ▼0.011.56 ▼0.2536.81 ▼9.44
Dashboard /wp-admin2,198 ▲265.54 ▼0.1799.98 ▼11.3980.15 ▲36.67
Posts /wp-admin/edit.php2,121 ▲211.97 ▲0.0439.56 ▲0.9535.35 ▼1.02
Add New Post /wp-admin/post-new.php1,546 ▲2023.25 ▲0.08720.99 ▲61.4262.84 ▲4.61
Media Library /wp-admin/upload.php1,418 ▲184.12 ▼0.07108.57 ▲13.3572.66 ▲30.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 17× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/ahmeti-wp-timeline/Admin/Settings/EditSettingsPost.php
    • > /wp-content/plugins/ahmeti-wp-timeline/Admin/Settings/EditSettingsForm.php
    • > /wp-content/plugins/ahmeti-wp-timeline/AhmetiWpTimelineFunction.php
    • > /wp-content/plugins/ahmeti-wp-timeline/Admin/Event/EventList.php
    • > /wp-content/plugins/ahmeti-wp-timeline/Admin/Group/GroupList.php
    • > /wp-content/plugins/ahmeti-wp-timeline/footer.php
    • > /wp-content/plugins/ahmeti-wp-timeline/Admin/Event/EditEventForm.php
    • > /wp-content/plugins/ahmeti-wp-timeline/Admin/Group/NewGroupForm.php
    • > /wp-content/plugins/ahmeti-wp-timeline/Admin/Event/EditEventPost.php
    • > /wp-content/plugins/ahmeti-wp-timeline/header.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/ahmeti-wp-timeline/index.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Eklenti Çıktısı)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === ahmeti-wp-timeline === )
The official readme.txt is a good inspiration

ahmeti-wp-timeline/AhmetiWpTimelineFunction.php 92% from 13 tests

The entry point to "mygallery" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ahmeti-wp-timeline.php" instead of "AhmetiWpTimelineFunction.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,927 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP183591521,072
JavaScript63846220
CSS54443218
HTML1331186
PO File1545133
Markdown142098

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
30 PNG files occupy 0.38MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Admin/Css/smoothness/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
Admin/Css/smoothness/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
screenshot-2.png20.84KB16.52KB▼ 20.72%
images/delete.png0.74KB0.64KB▼ 13.55%
screenshot-5.png40.21KB38.93KB▼ 3.17%