84% wp-to-grawler

Code Review | WP to Grawler

WordPress plugin WP to Grawler scored84%from 54 tests.

About plugin

  • Plugin page: wp-to-grawler
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Nov 1, 2014
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: GeoParis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /606 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WP to Grawler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.30 ▲0.32
Dashboard /wp-admin3.33 ▲0.0345.30 ▼7.10
Posts /wp-admin/edit.php3.38 ▲0.0345.66 ▲1.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.29 ▼10.63
Media Library /wp-admin/upload.php3.26 ▲0.0333.33 ▼3.97

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

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

Browser metrics Passed 4 tests

WP to Grawler: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.68 ▼0.621.70 ▼0.0539.73 ▼2.65
Dashboard /wp-admin2,213 ▲225.63 ▼0.25106.36 ▼16.6938.95 ▼4.03
Posts /wp-admin/edit.php2,099 ▲102.54 ▲0.5339.84 ▲3.6934.65 ▼1.68
Add New Post /wp-admin/post-new.php6,251 ▲4,73719.03 ▲1.64847.06 ▲173.6152.21 ▲2.69
Media Library /wp-admin/upload.php1,395 ▲75.01 ▲0.74104.01 ▼15.9742.12 ▼6.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-to-grawler/wp-to-grawler.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-to-grawler === )
You can look at the official readme.txt

wp-to-grawler/wp-to-grawler.php Passed 13 tests

Analyzing the main PHP file in "WP to Grawler" version 0.9.0
91 characters long description:
A one click way to share your geolocalized content into a mobile app using the Grawler API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin673 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS14715416
PHP13621253
JavaScript1054

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/marker-icon.png1.71KB1.56KB▼ 8.59%
assets/images/layers.png1.47KB1.05KB▼ 28.36%
assets/images/layers-2x.png2.83KB1.67KB▼ 41.10%
assets/images/marker-shadow.png0.78KB1.16KB0.00%
assets/images/marker-icon-2x.png3.94KB2.53KB▼ 35.71%