84% atom-publishing-protocol

Code Review | Atom Publishing Protocol

WordPress plugin Atom Publishing Protocol scored84%from 54 tests.

About plugin

  • Plugin page: atom-publishing-p...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Sep 11, 2012
  • Latest release: Mar 10, 2015
  • Number of updates: 11
  • Update frequency: every 193.6 days
  • Top authors: wonderboymusic (90.91%)Otto42 (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /5,821 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.33ms] Passed 4 tests

Analyzing server-side resources used by Atom Publishing Protocol
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.90 ▼8.41
Dashboard /wp-admin3.31 ▲0.0141.85 ▼6.26
Posts /wp-admin/edit.php3.36 ▲0.0050.55 ▲3.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.08 ▼5.54
Media Library /wp-admin/upload.php3.23 ▲0.0038.74 ▲2.90

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Atom Publishing Protocol
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.45 ▲0.071.62 ▼0.2940.48 ▼6.66
Dashboard /wp-admin2,209 ▲325.85 ▲0.97113.44 ▲5.9742.21 ▲4.39
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0139.22 ▲4.4934.50 ▼3.05
Add New Post /wp-admin/post-new.php1,542 ▲918.71 ▼4.53617.52 ▼52.4256.82 ▲2.99
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0193.52 ▼14.2440.68 ▼4.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(ABSPATHWPINC/atomlib.php): failed to open stream: No such file or directory in wp-content/plugins/atom-publishing-protocol/atom-publishing-protocol.php on line 12
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/atom-publishing-protocol/atom-publishing-protocol.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/atom-publishing-protocol/atom-publishing-protocol.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/atomlib.php' (include_path='.:/usr/share/php') in wp-content/plugins/atom-publishing-protocol/atom-publishing-protocol.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: atom

atom-publishing-protocol/atom-publishing-protocol.php Passed 13 tests

"Atom Publishing Protocol" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
Atom Publishing Protocol support for WordPress

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
Good job! No executable or dangerous file extensions detected846 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2250527846

PHP code Passed 2 tests

An short overview of 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.33
Average class complexity74.00
▷ Minimum class complexity4.00
▷ Maximum class complexity144.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods60
▷ Static methods11.67%
▷ Public methods5998.33%
▷ Protected methods00.00%
▷ Private methods11.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected