84% pure-writing

Code Review | pure writing

WordPress plugin pure writing scored84%from 54 tests.

About plugin

  • Plugin page: pure-writing
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2014
  • Latest release: Jul 15, 2014
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: binaryoung (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,084 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by pure writing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.29 ▼2.45
Dashboard /wp-admin3.32 ▲0.0247.98 ▲3.27
Posts /wp-admin/edit.php3.37 ▲0.0148.84 ▲3.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.42 ▼4.02
Media Library /wp-admin/upload.php3.25 ▲0.0132.88 ▼2.38

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

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

Browser metrics Passed 4 tests

pure writing: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.121.73 ▲0.0343.96 ▲3.94
Dashboard /wp-admin2,203 ▲115.83 ▲0.9094.94 ▼11.9239.71 ▲0.01
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0041.55 ▲7.5637.25 ▼0.95
Add New Post /wp-admin/post-new.php1,534 ▼021.12 ▼2.08597.83 ▼59.6051.17 ▲2.21
Media Library /wp-admin/upload.php1,388 ▲64.29 ▲0.0691.97 ▼5.1340.56 ▼1.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pure-writing/pure-writing.php:25

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (demo)
Please take inspiration from this readme.txt

pure-writing/pure-writing.php Passed 13 tests

The primary PHP file in "pure writing" version 0.1 is used by WordPress to initiate all plugin functionality
66 characters long description:
增强Wordpress的编辑器功能,让你享受纯粹的写作。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin60 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2131356
JavaScript4004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin