90% fragmentions

Code Review | Fragmentions

WordPress plugin Fragmentions scored90%from 54 tests.

About plugin

  • Plugin page: fragmentions
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 25, 2014
  • Latest release: Feb 14, 2016
  • Number of updates: 16
  • Update frequency: every 41.3 days
  • Top authors: goblindegook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /840 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.05ms] Passed 4 tests

An overview of server-side resources used by Fragmentions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.12 ▼1.88
Dashboard /wp-admin3.31 ▲0.0146.08 ▼2.13
Posts /wp-admin/edit.php3.37 ▲0.0148.90 ▲3.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.52 ▼2.83
Media Library /wp-admin/upload.php3.24 ▲0.0134.92 ▼1.35

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fragmentions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.15 ▼1.282.20 ▼0.1038.25 ▼6.84
Dashboard /wp-admin2,206 ▲385.83 ▲0.0294.19 ▼8.9439.69 ▼0.78
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0139.10 ▲3.7434.65 ▼4.74
Add New Post /wp-admin/post-new.php1,535 ▼123.37 ▲0.50676.46 ▲37.3053.67 ▼4.20
Media Library /wp-admin/upload.php1,391 ▼04.22 ▼0.0199.83 ▲3.7743.56 ▼4.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: fragmentions, annotations

fragmentions/fragmentions.php Passed 13 tests

The principal PHP file in "Fragmentions" v. 1.4.0 is loaded by WordPress automatically on each request
90 characters long description:
Fragmentions allow linking to document sections on WordPress sites using words or phrases.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected86 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2182457
PHP2122228
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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