84% simple-app-changelogs

Code Review | Simple App Changelogs

WordPress plugin Simple App Changelogs scored84%from 54 tests.

About plugin

  • Plugin page: simple-app-change...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 20, 2016
  • Latest release: Mar 21, 2016
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: peti446 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.09ms] Passed 4 tests

A check of server-side resources used by Simple App Changelogs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0543.51 ▼2.18
Dashboard /wp-admin3.45 ▲0.1048.24 ▼15.68
Posts /wp-admin/edit.php3.56 ▲0.2054.20 ▲6.36
Add New Post /wp-admin/post-new.php6.03 ▲0.1491.57 ▼13.98
Media Library /wp-admin/upload.php3.37 ▲0.1442.70 ▲3.50
New Project /wp-admin/admin.php?page=simple_appchangelog_newProject_page3.3435.63
General /wp-admin/admin.php?page=simple_appchangelog_main_page3.3436.64

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 2 new tables, 6 new options
New tables
wp_sappchangelog_projects
wp_sappchangelog_versions
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple App Changelogs: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.36 ▼0.041.48 ▼0.5542.27 ▼0.74
Dashboard /wp-admin2,221 ▲445.47 ▼0.1486.91 ▼8.7442.55 ▲1.46
Posts /wp-admin/edit.php2,129 ▲291.99 ▲0.0037.83 ▲1.8736.04 ▲4.93
Add New Post /wp-admin/post-new.php1,550 ▲2423.06 ▲0.10711.93 ▲34.1753.89 ▼2.32
Media Library /wp-admin/upload.php1,426 ▲264.23 ▲0.06104.12 ▼11.0747.23 ▲1.88
New Project /wp-admin/admin.php?page=simple_appchangelog_newProject_page8432.1522.3126.01
General /wp-admin/admin.php?page=simple_appchangelog_main_page7871.9925.3426.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/simple-app-changelogs/simple-apps-changelogs.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-app-changelogs/admin/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-app-changelogs/main.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-app-changelogs/init.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: versioning, log, app, logging, programming...

simple-app-changelogs/simple-apps-changelogs.php 85% from 13 tests

This is the main PHP file of "Simple App Changelogs" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-app-changelogs.php" instead of "simple-apps-changelogs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected917 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP72582765
PO File16483114
CSS21027
JavaScript11011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity15.00
▷ Minimum class complexity14.00
▷ Maximum class complexity16.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin