84% story-chief-wpml

Code Review | StoryChief WPML

WordPress plugin StoryChief WPML scored84%from 54 tests.

About plugin

  • Plugin page: story-chief-wpml
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: May 12, 2022
  • Number of updates: 16
  • Update frequency: every 110.9 days
  • Top authors: storychief (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,036 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.46ms] Passed 4 tests

Server-side resources used by StoryChief WPML
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.21 ▼5.05
Dashboard /wp-admin3.34 ▲0.0348.35 ▲0.99
Posts /wp-admin/edit.php3.39 ▲0.0349.63 ▼2.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.32 ▼11.39
Media Library /wp-admin/upload.php3.26 ▲0.0339.48 ▲5.85

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by StoryChief WPML
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.161.94 ▲0.1541.70 ▼3.48
Dashboard /wp-admin2,198 ▲185.57 ▼0.0783.97 ▼1.2539.01 ▼2.30
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0140.04 ▲0.1739.20 ▲5.23
Add New Post /wp-admin/post-new.php1,526 ▼023.77 ▲0.49670.19 ▼13.3452.34 ▼21.70
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.02100.21 ▼5.6244.91 ▲0.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/story-chief-wpml/story-chief-wpml.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: storychief, wpml

story-chief-wpml/story-chief-wpml.php Passed 13 tests

The entry point to "StoryChief WPML" version 1.0.7 is a PHP file that has certain tags in its header comment area
51 characters long description:
This plugin lets StoryChief and WPML work together.

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
No dangerous file extensions were detected146 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33620146

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin